import Layout from "@/layout";
export default {
  path: "/neighbor-interaction",
  component: Layout,
  roleid:4,
  name: "NeighborInteraction",
  meta: { title: "邻里互助", icon: "dashboard" },
  children: [
    {
      path: "activity",
      name: "Activity",
      component: () => import("@/views/neighbor-interaction/activity"),
      meta: { title: "邻里活动" },
      hidden: true,
      children: [
        {
          path: "list",
          name: "ActivityList",
          component: () => import("@/views/neighbor-interaction/activity/list"),
          meta: { title: "活动列表" },
        },
        {
          path: "enlist",
          name: "ActivityEnlist",
          component: () =>
            import("@/views/neighbor-interaction/activity/enlist"),
          meta: { title: "活动报名" },
        },
        {
          path: "register",
          name: "ActivityRegister",
          component: () =>
            import("@/views/neighbor-interaction/activity/register"),
          meta: { title: "活动签到" },
        },
      ],
    },

    {
      path: "info",
      name: "Info",
      component: () => import("@/views/neighbor-interaction/info"),
      meta: { title: "邻里信息" },
      children: [
        {
          path: "pact-list",
          name: "PactList",
          component: () =>
            import("@/views/neighbor-interaction/info/pact-list"),
          meta: { title: "公约列表" },
        },
        {
          path: "pact-sign",
          name: "PactSign",
          hidden: true,
          component: () =>
            import("@/views/neighbor-interaction/info/pact-sign"),
          meta: { title: "公约签订" },
        },
        {
          path: "news",
          name: "NeighborNews",
          component: () => import("@/views/neighbor-interaction/info/news"),
          meta: { title: "邻里资讯" },
        },
      ],
    },

    {
      path: "topics",
      name: "Topics",
      component: () => import("@/views/neighbor-interaction/topics"),
      // hidden: true,
      meta: { title: "小区话题" },
      children: [
        {
          path: "type",
          name: "TopicsType",
          component: () => import("@/views/neighbor-interaction/topics/type"),
          meta: { title: "话题分类" },
        },
        {
          path: "posts",
          name: "TopicsPosts",
          component: () => import("@/views/neighbor-interaction/topics/posts"),
          meta: { title: "帖子" },
        },
      ],
    },

    {
      path: "micro-wish",
      name: "MicroWish",
      component: () => import("@/views/neighbor-interaction/micro-wish"),
      meta: { title: "微心愿" },
    },

    {
      path: "deeds",
      name: "Deeds",
      component: () => import("@/views/neighbor-interaction/deeds"),
      meta: { title: "义举榜" },
    },

    {
      path: "mutual-aid",
      name: "MutualAid",
      hidden: true,
      component: () => import("@/views/neighbor-interaction/mutual-aid"),
      meta: { title: "邻里互助" },
    },
  ],
};
